
<!doctype html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>家园在线</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="wap-font-scale" content="no">
	<link rel="stylesheet" href="{:RES}/jinrong/Mobile/Public/css/style.css">
	<link rel="stylesheet" href="{:RES}/jinrong/Mobile/Public/css/common.css"> 
	<link rel="stylesheet" href="{:RES}/jinrong/Mobile/Public/css/ucenter.css">
    <link rel="stylesheet" href="{:RES}/jinrong/Mobile/Public/css/chart/resource.css">
    <link rel="stylesheet" href="{:RES}/jinrong/Mobile/Public/css/chart/nav.css">
    <script src="{:RES}/jinrong/Mobile/Public/js/jquery-1.11.3.min.js"></script>
    <script src="{:RES}/jinrong/Mobile/Public/js/bank_water.js"></script>
	<style>
        body{
            padding-bottom:80px;
        }
    </style>
</head>
<body>
<!--加载动画start-->

<include file="Public:loading"/>
<!--加载动画end-->
<nav>
    <ul>
        <li class="nav_icon1"><a href="{:U('Trading/index')}">首页</a></li>
        <li class="nav_icon2"><a href="{:U('User/corps')}">战队</a></li>
        <li class="nav_icon3"><a href="{:U('User/help')}">帮助</a></li>
        <li class="nav_icon4 current current4"><a href="{:U('User/private_person')}">用户中心</a></li>
    </ul>
</nav>
<section class="index_content">
    <div class="index_list coupon_list">
        <ul>
            <li id="btn1" class="current" style="width: 50%;" onclick="change1(this);">近3日充值</li>
            <li id="btn2" class="" style="width: 50%;" onclick="change2(this);">提款</li>
        </ul>

    </div>
    <div id="div1" class="record" style="display:block;">
        <dl>
            <dt>
                <span>时间</span>
                <span>金额</span>
                <span>状态</span>
            </dt>
            <div id="list0">
            </div>
        </dl>
    </div>
    <div id="div2" class="record" style="display:none;">
        <dl>
            <dt>
                <span>时间</span>
                <span>金额</span>
                <span>状态</span>
            </dt>
            <div id="list1">
            </div>
        </dl>
    </div>
</section>
<script>
    $(document).ready(function(){
        var url = window.location.href;
        if( url.indexOf("recharge") > 0 )
        {
            $("#btn1").addClass("current");
            $("#btn2").removeClass("current");
            $("#div1").css("display","block");
            $("#div2").css("display","none");
            /*0是充值记录*/
            load_water(1,15,0,1);
        }else if( url.indexOf("deposit") > 0 ) {

            $("#btn2").addClass("current");
            $("#btn1").removeClass("current");
            $("#div2").css("display", "block");
            $("#div1").css("display", "none");
            /*1是提现记录*/
            load_water(1,15,1,1);
        }
    });

    /*充值*/
    function change1(ob){
        var cla = $(ob).attr("class");
        if( cla != "current" )
        {
            $(ob).addClass("current");
            $("#btn2").removeClass("current");
            $("#div1").css("display","block");
            $("#div2").css("display","none");
            load_water(1,15,0,1);
        }
    }
    /*提现*/
    function change2(ob){
        var cla = $(ob).attr("class");
        if( cla != "current" )
        {
            $(ob).addClass("current");
            $("#btn1").removeClass("current");
            $("#div2").css("display","block");
            $("#div1").css("display","none");
            load_water(1,15,1,1);
        }
    }
</script>
<script src="{:RES}/jinrong/Mobile/Public/js/loading.js"></script>
</body>
</html>